<?php

class Addprofilesecurityitems extends Doctrine_Migration_Base {

    public function createSfGuardPermission($permissionName, $description) {
        $perm = new sfGuardPermission();
        $perm->setName($permissionName);
        $perm->setDescription($description);
        $perm->save(Doctrine_Manager::getInstance()->getCurrentConnection());
    }

    public function up() {
        $this->createSfGuardPermission('edit-any-user-profile-link', 'Allows users to change the user profiles for users');
    }

    public function down() {
        
    }

}
